﻿<%@ Page CodeFileBaseClass="AliCMS.Lib.AdminPageBase" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<!-- TemplateInfo codeOutsideHTMLIsLocked="true" -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><%=Channel[Name]%> - <%=Site[Name]%></title>
<ali:Comment><link rel="stylesheet" type="text/css" href="S01/CHS/css/common.css" /></ali:Comment>
<link rel="stylesheet" href="<%=CssPath%>common.css" />
<link rel="stylesheet" href="<%=CssPath%>menubar.css" />
<script type="text/javascript">
var _page = "index";
var _desktopPath = "<%=BuildUrl("desktop")%>";
</script>
</head>
<%If !Request.Browser.Browser.Contains("IE")%>
	<%="<body>"%>
<%Else%>
	<body scroll="no">
<%EndIf%>
<div id="Header">
	<div></div>
	<ul>
		<li>您好，<%=User["Name"]%> 欢迎您！,<a href="logout.aspx">安全退出</a></li>
	</ul>
</div>

<div id="MenuBar">
	<ali:Tree Mark="System" Object="Template.Menu" Operation="AuthorizedList(Convert.ToString(Channel[TemplatePath]), 0)">
		<ul>
			<ali:Record>
				<li>
					<%If Record.ChildNodes.Count > 0%>
						<%If String.Equals(PathInTemplate, "")%>
							<%If String.Equals(Target, "")%>
								<a href="<%=URL%>" target="Main" class="SubMenu"><%=Name%></a>
							<%Else%>
								<a href="<%=URL%>" target="<%=Target%>" class="SubMenu"><%=Name%></a>
							<%EndIf%>
						<%Else%>
							<%If String.Equals(Target, "")%>
								<a href="frame.aspx?Right=<%=URL%>&amp;InstanceID=<%=["InstanceID"]%>" target="Main" class="SubMenu"><%=Name%></a>
							<%Else%>
								<a href="frame.aspx?Right=<%=URL%>&amp;InstanceID=<%=["InstanceID"]%>" target="<%=Target%>" class="SubMenu"><%=Name%></a>
							<%EndIf%>
						<%EndIf%>
					<%Else%>
						<%If String.Equals(PathInTemplate, "")%>
							<%If String.Equals(Target, "")%>
								<a href="<%=URL%>" target="Main"><%=Name%></a>
							<%Else%>
								<a href="<%=URL%>" target="<%=Target%>"><%=Name%></a>
							<%EndIf%>
						<%Else%>
							<%If String.Equals(Target, "")%>
								<a href="frame.aspx?Right=<%=URL%>&amp;InstanceID=<%=["InstanceID"]%>" target="Main"><%=Name%></a>
							<%Else%>
								<a href="frame.aspx?Right=<%=URL%>&amp;InstanceID=<%=["InstanceID"]%>" target="<%=Target%>"><%=Name%></a>
							<%EndIf%>
						<%EndIf%>
					<%EndIf%>
					<%=ChildRecords%>
				</li>
			</ali:Record>
		</ul>
	</ali:Tree>
</div>
<iframe name="Main" id="Main" frameborder="0" width="100%" src="" scrolling="yes"></iframe>
<script type="text/javascript" src="<%=CommonPath%>jquery/core.js"></script>
<script type="text/javascript" src="<%=CommonPath%>jquery/ui.js"></script>
<script type="text/javascript" src="<%=JsPath%>common.js"></script>
</body>
</html>